home *** CD-ROM | disk | FTP | other *** search
/ Explorer - Mosaic & Web / Explorer - Mosaic & Web.iso / urbstuff / unix / runit < prev   
Encoding:
Text File  |  1995-02-05  |  1.1 KB  |  27 lines

  1.  # Written by Urb LeJeune, lejeune@acy.digex.net
  2.  # Script "runit" used to make a script file(s) executable.
  3.  #
  4.  # The syntax is:
  5.  #              runit script-name-list
  6.  # replace script-name-list with the file name(s) to be make
  7.  # executable. List is in the form: runit file-1 file-2 ... file-n
  8.  # Wild cards may be used, such as runit abc*
  9.  # Which will make any file beginning with "abc" executable.
  10.  #
  11.  # Test to see if there is a passed parameter #
  12.  if test -z "$1"  
  13.    then  # There is no passed parameter
  14.     echo .
  15.     echo "  The syntax for this script is:"
  16.     echo "       runit <script-name-list>"
  17.     echo "  replacing <script-name-list> (without the <>) with"
  18.     echo "  a file list that is to be made executable."
  19.     echo "  File list is in the form: runit file-1 file-2 ... file-n"
  20.     echo "  Wild cards may be used, such as runit abc*"
  21.     echo "  Which will make any file beginning with abc executable."
  22.     echo .
  23.   else  # There is a passed parameter
  24.     # Make the passed script(s) executable.
  25.     chmod u+x $@
  26.  fi # end if
  27.